/*
 * Player.cpp
 *
 *  Created on: 04.10.2013
 *      Author: dima
 */

#include "PlayerModel.hpp"



Tanks::
Model::
PlayerModel::
PlayerModel(int argX,
      int argY,
      int argW,
      int argH)
{
  // initialize TankModel data
  m_damage = 100;
  m_fireRate = 0.5;
  m_missileSpeed = 10;
  m_speed = 2;
  m_health = 500;
  m_XVelocity = 0;
  m_YVelocity = 0;
  m_oldX = argX;
  m_oldY = argY;

  // initialize GameObjectModel data
  m_type = Player;
  m_rect = new SDL_Rect;
  m_rect->x = argX;
  m_rect->y = argY;
  m_rect->w = argW;
  m_rect->h = argH;
  m_team = 0;
}

